package com.api.entity;


import com.api.tool.MD5Utils;
import org.apache.ibatis.type.Alias;

@Alias("users")
public class Users {
 
	private String id;
	private String loginName;
	private String isLockout;
	private String pwd;
	private String lastLoginTime;
	private String createTime;
	private int psdWrongTime;
	private String lockTime;
	private String protectEMail;
	private String protectMTel;
	private String state;
	private String macAddress;

	
	public String getPwd() {
		return pwd;
	}
	public void setPwd(String pwd) {
		this.pwd = pwd;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getLoginName() {
		return loginName;
	}
	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}
	public String getIsLockout() {
		return isLockout;
	}
	public void setIsLockout(String isLockout) {
		this.isLockout = isLockout;
	}
	public String getLastLoginTime() {
		return lastLoginTime;
	}
	public void setLastLoginTime(String lastLoginTime) {
		this.lastLoginTime = lastLoginTime;
	}
	public String getCreateTime() {
		return createTime;
	}
	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}
	public int getPsdWrongTime() {
		return psdWrongTime;
	}
	public void setPsdWrongTime(int psdWrongTime) {
		this.psdWrongTime = psdWrongTime;
	}
	public String getLockTime() {
		return lockTime;
	}
	public void setLockTime(String lockTime) {
		this.lockTime = lockTime;
	}
	public String getProtectEMail() {
		return protectEMail;
	}
	public void setProtectEMail(String protectEMail) {
		this.protectEMail = protectEMail;
	}
	public String getProtectMTel() {
		return protectMTel;
	}
	public void setProtectMTel(String protectMTel) {
		this.protectMTel = protectMTel;
	}
	public String getState() {
		return state;
	}
	public void setState(String state) {
		this.state = state;
	}

	public void encryptPwd(String pwd){
		this.pwd = MD5Utils.getMD5Str(pwd);
	}

	public String getMacAddress() {
		return macAddress;
	}

	public void setMacAddress(String macAddress) {
		this.macAddress = macAddress;
	}
}
